<template>
    <t-layout style="height: 100vh;">
      <t-aside>
        <t-menu theme="light" :value="currentPath">
          <template #logo>
            <div style="margin-bottom:20px; margin-right: 30px; height: 100%;">
              <img src="@/assets/放大镜2.jpg" alt="" style="width: 100%; object-fit: cover;">
            </div>
          </template>
          <div style="margin-top: 30px;">
            <t-menu-item value="Pax" to="/home/pax">
            <template #icon>
              <t-icon name="dashboard" />
            </template>
            PAX 导航
            </t-menu-item>
          </div>
          <t-menu-item value="Demo" to="/home/demo">
            <template #icon>
              <t-icon name="server" />
            </template>
            建设中...
          </t-menu-item>
        </t-menu>
      </t-aside>
      <t-layout>
        <t-content>
            <RouterView/>
        </t-content>
        <t-footer>Copyright @ 2019-{{ new Date().getFullYear() }} Tencent. All Rights Reserved</t-footer>
      </t-layout>
    </t-layout>
</template>
<script lang="ts" setup name="hello">
import { useRoute } from 'vue-router'
import { computed, ref } from 'vue'
// import { useAuthStore } from '@/stores/auth'


// 获取当前路由路径
const route = useRoute()
const currentPath = ref(computed(() => {
  // 返回当前路由的 path（如 "/mailContent"）
  // console.log('111',route.path)
  // console.log(route.path.split('/'))
  return route.name
}))

</script>

